package com.xueyi.system.toolManager.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.toolManager.domain.dto.BaseToolManagerDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

import java.time.LocalDateTime;

/**
 * 设备工具管理 持久化对象
 *
 * @author zlf
 */
@TableName(value = "base_tool_manager", excludeProperty = {"name","sort"})
public class BaseToolManagerPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /** 设备id */
@Excel(name = "设备id")
@TableField("device_id")
private String deviceId;

    /** 设备名称 */
@Excel(name = "设备名称")
@TableField("device_name")
private String deviceName;

    /** 图片 */
@Excel(name = "图片")
@TableField("image")
private String image;

    /** 设备类型（1种植设施、2产地加工设施、3包装设施、4质量检验设施、5仓储设施、6自定义） */
@Excel(name = "设备类型", readConverterExp = "1=种植设施、2产地加工设施、3包装设施、4质量检验设施、5仓储设施、6自定义")
@TableField("device_type")
private String deviceType;

    /** 设施id */
@Excel(name = "设施id")
@TableField("execution_id")
private String executionId;

    /** 设施名称 */
@Excel(name = "设施名称")
@TableField("execution_name")
private String executionName;

    /** 存放位置 */
@Excel(name = "存放位置")
@TableField("position")
private String position;

    /** 型号(规格) */
@Excel(name = "型号(规格)")
@TableField("type")
private String type;

    /** 生产厂家 */
@Excel(name = "生产厂家")
@TableField("factory")
private String factory;

    /** 到厂(日期) */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@Excel(name = "到厂(日期)", width = 30, dateFormat = "yyyy-MM-dd")
@TableField("arrival_date")
private LocalDateTime arrivalDate;

    /** 部门id */
@Excel(name = "部门id")
@TableField("dept_id")
private String deptId;

    /** 部门名称 */
@Excel(name = "部门名称")
@TableField("dept_name")
private String deptName;

    /** 状态：（1启用 2停用） */
@Excel(name = "状态：", readConverterExp = "1=启用,2=停用")
@TableField("status")
private String status;

    /** 管理员 */
@Excel(name = "管理员")
@TableField("administrators")
private String administrators;

public void setDeviceId(String deviceId) {
    this.deviceId = deviceId;
}

public String getDeviceId() {
    return deviceId;
}

public void setDeviceName(String deviceName) {
    this.deviceName = deviceName;
}

public String getDeviceName() {
    return deviceName;
}

public void setImage(String image) {
    this.image = image;
}

public String getImage() {
    return image;
}

public void setDeviceType(String deviceType) {
    this.deviceType = deviceType;
}

public String getDeviceType() {
    return deviceType;
}

public void setExecutionId(String executionId) {
    this.executionId = executionId;
}

public String getExecutionId() {
    return executionId;
}

public void setExecutionName(String executionName) {
    this.executionName = executionName;
}

public String getExecutionName() {
    return executionName;
}

public void setPosition(String position) {
    this.position = position;
}

public String getPosition() {
    return position;
}

public void setType(String type) {
    this.type = type;
}

public String getType() {
    return type;
}

public void setFactory(String factory) {
    this.factory = factory;
}

public String getFactory() {
    return factory;
}

public void setArrivalDate(LocalDateTime arrivalDate) {
    this.arrivalDate = arrivalDate;
}

public LocalDateTime getArrivalDate() {
    return arrivalDate;
}

public void setDeptId(String deptId) {
    this.deptId = deptId;
}

public String getDeptId() {
    return deptId;
}

public void setDeptName(String deptName) {
    this.deptName = deptName;
}

public String getDeptName() {
    return deptName;
}

@Override
public void setStatus(String status) {
    this.status = status;
}

@Override
public String getStatus() {
    return status;
}

public void setAdministrators(String administrators) {
    this.administrators = administrators;
}

public String getAdministrators() {
    return administrators;
}

}
